<?php
/**
 * @var $recruitsDetail
 */
?>
<div class="mainJobs mainWith">
    <div class="breadCrumb">
        当前位置：<a href="/">首页</a> > <a href="/zp">招聘考试</a> > <a href="javascript:void(0)"><?php echo $recruitsDetail->title?></a>
    </div>

    <div class="zpInfoList zp_detail_text">
        <div class="zpDetailArticle">
            <div class="zpDetailArticleHeader">
                <div class="zpDetailHeaderText"><?php echo $recruitsDetail->title?></div>
                <div class="zpDetailArticlePublishAndView">
                    <span class="zpInfoPublishDate">
                        <i class="fa fa-clock-o" aria-hidden="true"></i>
                        <?php echo explode(' ',$recruitsDetail->publish_date)[0]?>
                    </span>
                    <span class="zpInfoViewCount">
                        <i class="fa fa-eye" aria-hidden="true"></i>
                        <?php echo $recruitsDetail->view_count?>
                    </span>
                </div>
            </div>
            <div class="zpDetailProgressAndUpDate clearFix">
                <div class="zpDetailProgress">
                    <label class="zpDetailProgressLabel">招聘进度：</label>
                    <div class="zpDetailProgressBar">
                        <?php if(strtotime($recruitsDetail->up_to)>strtotime(date('Y-m-d'))) {
                            ?>
                            <div class="zpDetailProgressBarInner">

                            </div>
                            <?php
                        } else {
                            ?>
                            <div class="zpDetailProgressBarInner overDate">

                            </div>
                        <?php
                        }?>
                    </div>
                    <span><?php echo strtotime($recruitsDetail->up_to)>strtotime(date('Y-m-d'))?'进行中':'已结束'?></span>
                    <div class="zpDetailUpDate">
                        <span>截止时间：</span><?php echo explode(' ', $recruitsDetail->up_to)[0]?>
                    </div>
                </div>
            </div>
            <div class="zpDetailArticleContent">
                <?php echo $recruitsDetail->content?>
            </div>
        </div>
    </div>
    <div class="zpDetailPosition zp_detail_position" id="zhaoPin">
        <div class="zpDetailPositionHeader">
            招聘职位
        </div>
        <div class="zpDetailTag clearFix">
            <?php if($recruitsDetail->position !== null){
                ?>
                <ul class="job">
                    <?php
                    $positions = explode('|',$recruitsDetail->position);
                    foreach ($positions as $value) {
                        ?>
                        <li>
                            <?php echo $value ?>
                        </li>
                        <?php
                    }
                    ?>
                </ul>
                <?php
            } else {
                ?>
                <span style="color: #888888;margin-bottom: 10px;display: inline-block">暂无岗位说明</span>
                <?php
            }?>
        </div>
    </div>
    <div class="zpSignInfo">
        <div class="signInfoHeaderWrap">
            <span class="signInfoHeader">
                报名信息
            </span>
            <span class="signUpDate">
                截至日期：<span class="up_to_color"><?php echo explode(' ',$recruitsDetail->up_to)[0]?></span>
            </span>
        </div>
        <div class="zpSignInfoContent clearFix">
            <div class="zpDetailLocation">
                <span class="zp_info_label">地区：</span><?php echo $recruitsDetail->address?>
            </div>
            <div class="zpDetailSignWay">
                <span class="zp_info_label">报名方式：</span><?php echo $recruitsDetail->sign_way?>
            </div>
            <div class="zpDetailContact">
                <span class="zp_info_label">联系人：</span><?php echo $recruitsDetail->contact?>
            </div>
            <div class="zpDetailAskPhone">
                <span class="zp_info_label">咨询电话：</span><?php echo $recruitsDetail->phone?>
            </div>
            <div class="zpDetailWebSite">
                <span class="zp_info_label">网址：</span><?php echo $recruitsDetail->website?>
            </div>
            <div class="zpDetailSignAddress">
                <span class="zp_info_label">报名地址：</span><?php echo $recruitsDetail->sign_address?>
            </div>
            <div class="zpDetailSignEmail">
                <span class="zp_info_label">报名邮箱：</span><?php echo $recruitsDetail->email?>
            </div>
            <div class="zpDetailSignRemark">
                <span class="zp_info_label">备注：</span><?php echo $recruitsDetail->remark?>
            </div>
        </div>
    </div>
</div>